﻿using GalaSoft.MvvmLight;
using SD.Libs.Navigation.Contracts;
using System.Collections.Generic;

namespace TestRunner.App.Base
{
    public class MyVMBase : ViewModelBase, INavigationContext
    {
        public event NavigatedToPageEventHandler Navigated;

        public void NotifyNavigated(IDictionary<string, string> queryString)
        {
            if (Navigated != null)
            {
                Navigated(this, new NavigationContextEventArgs() { QueryString = queryString });
            }
        }
    }
}
